﻿<%@ Page Title="职位收藏夹" Language="C#" MasterPageFile="~/Person.master" AutoEventWireup="true"
    CodeFile="PersonFavorites.aspx.cs" Inherits="PersonFavorites" %>

<%@ Import Namespace="Avatar.Company" %>
<%@ Import Namespace="Avatar.Common" %>
<%@ Register Src="UserControl/PersonNavigation.ascx" TagName="PersonNavigation" TagPrefix="uc1" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="cph_Main">
    <link type="text/css" rel="stylesheet" href="./images/resume/myzhaopin.css">
    <uc1:PersonNavigation ID="PersonNavigation1" runat="server" Current="3" />
    <style type="text/css">
        .row111
        {
            width: 896px;
            margin: 0 auto;
        }
        .row111 h2
        {
            height: 20px;
            padding: 15px 0 0 14px;
            font-size: 16px;
        }
        .row111 .row1p2
        {
            float: right;
            margin-top: 20px;
        }
    </style>
    <div class="layout">
        <div class="row111">
            <h2>
                职位收藏夹</h2>
            <p class="row1P1">
                <span> </span>您关注的职位信息。其中标为“过期职位”的职位不能申请。<br>
                <%--您也可以通过搜索在收藏夹中查找特定的职位。--%></p>
            <asp:ListView ID="ListView1" runat="server">
                <ItemTemplate>
                    <tr style="">
                        <td align="left" class="tab6Td1  ">
                            <%#LocationManager.Get(JobManager.GetJob(new Guid(Eval("JobID").ToString())).LocationID).Name %>
                        </td>
                        <td width="150">
                            <a target="_blank" href="./job.aspx?id=<%# JobManager.GetJob(new Guid(Eval("JobID").ToString())).ID%>">
                                <%# JobManager.GetJob(new Guid(Eval("JobID").ToString())).Title%></a>
                        </td>
                        <td style="text-align: center;">
                            <a href="./CompanyJobList.aspx?Company=<%# CompanyInformationManager.GetCompanyInformation(JobManager.GetJob(new Guid(Eval("JobID").ToString())).PublisherUser).CompanyName %>"
                                target="_blank">
                                <%# CompanyInformationManager.GetCompanyInformation(JobManager.GetJob(new Guid(Eval("JobID").ToString())).PublisherUser).CompanyName%></a>
                        </td>
                        <td>
                            <%# Helper.DateTimeStringFormat(Convert.ToDateTime(Eval("Date"))) %>
                        </td>
                        <td>
                            <%# JobManager.IsTheJobExpired(new Guid(Eval("jobID").ToString()))?"已过期":"招聘中" %>
                        </td>
                        <td width="210" style="text-align: center;">
                            <asp:Button ID="btn_Update" runat="server" CommandArgument='<%# Eval("JobID") %>'
                                OnClick="btn_Apply_Click" Text='<%# UpdateButtonTextValue(new Guid(Eval("jobID").ToString()))%>'
                                Enabled='<%# UpdateButtonEnable(new Guid(Eval("jobID").ToString())) %>' />
                            |
                            <asp:Button ID="btn_Delete" CssClass="blue12line" CommandArgument='<%# Eval("ID") %>'
                                OnClick="btn_Delete_Click" runat="server" Text="删除" />
                        </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <table border="0" class="table1" style="width: 100%">
                        <tr id="Tr1" style="">
                            <th id="Th1" width="100" style=" text-align:center;">
                                工作地点
                            </th>
                            <th id="Th2" width="330" style=" text-align:center;">
                                职位名称
                            </th>
                            <th id="Th3" width="305" style=" text-align:center;">
                                公司名称
                            </th>
                            <th id="Th4" width="100" style=" text-align:center;">
                                收藏日期
                            </th>
                            <th id="Th5" width="100" style=" text-align:center;">
                                职位状态
                            </th>
                            <th id="Th6" width="30" style=" text-align:center;">
                                操作
                            </th>
                        </tr>
                        <tr>
                            <td colspan="6" style=" padding-top:5%; padding-bottom:5%; text-align: center;">
                                    <b>您还没有收藏任何职位信息</b>
                            </td>
                        </tr>
                    </table>
                </EmptyDataTemplate>
                <LayoutTemplate>
                    <table id="itemPlaceholderContainer" runat="server" border="0" class="table1" style="width: 100%">
                        <tr id="Tr1" runat="server" style="">
                            <th id="Th1" runat="server" width="100" style=" text-align:center;">
                                工作地点
                            </th>
                            <th id="Th2" runat="server" width="330" style=" text-align:center;">
                                职位名称
                            </th>
                            <th id="Th3" runat="server" width="305" style=" text-align:center;">
                                公司名称
                            </th>
                            <th id="Th4" runat="server" width="100" style=" text-align:center;">
                                收藏日期
                            </th>
                            <th id="Th5" runat="server" width="100" style=" text-align:center;">
                                职位状态
                            </th>
                            <th id="Th6" runat="server" style=" text-align:center;">
                                操作
                            </th>
                        </tr>
                        <tr id="itemPlaceholder" runat="server">
                        </tr>
                        <tr id="Tr2" runat="server">
                            <td id="Td1" colspan="6" runat="server" style="">
                                <asp:DataPager ID="DataPager1" runat="server">
                                    <Fields>
                                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                                            ShowPreviousPageButton="False" />
                                        <asp:NumericPagerField />
                                        <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                                            ShowPreviousPageButton="False" />
                                    </Fields>
                                </asp:DataPager>
                            </td>
                        </tr>
                    </table>
                    <div class="page" style="text-align: left;">
                        <asp:CheckBox ID="cb_SelectAll" runat="server" AutoPostBack="true" Text="全部选中" />
                    </div>
                    <div class="btnCon">
                        <asp:Button ID="btn_Apply" runat="server" Text="申请选中的职位" CssClass="btn4" />&nbsp;&nbsp;
                        <asp:Button ID="btn_Delete" runat="server" Text="删除选中的职位" CssClass="btn4" />
                    </div>
                </LayoutTemplate>
            </asp:ListView>
            <div style="text-align: center;">
                <asp:Label ID="lbl_Error" ForeColor="Red" EnableViewState="false" runat="server"></asp:Label>
            </div>
        </div>
    </div>
</asp:Content>
